package com.oop.demo03;

public class Application {
    public static void main(String[] args) {
        Pet dog = new Pet();
        dog.name = "旺财";
        dog.age = 1;
        System.out.print(dog.age+"岁的");
        System.out.print(dog.name);
        dog.shout();

        Pet cat = new Pet();
        cat.name = "咪咪";
        cat.age = 0;

        System.out.println(cat.name);
        cat.shout();
        System.out.println("它"+cat.age+"岁了");
    }
}